#include "lvgl/lvgl.h"
#include "lvgl/demos/lv_demos.h"
#include <unistd.h>
#include <pthread.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "./lvgl/examples/lv_examples.h"

#include "./my_codeh/display.h"
#include "./my_codeh/speech.h"
int main(void)
{
    //  1、设备初始化
    lv_init();
    lv_display_t * disp = lv_linux_fbdev_create();
    lv_linux_fbdev_set_file(disp, "/dev/fb0");
    lv_indev_t * indev = lv_evdev_create(LV_INDEV_TYPE_POINTER,"/dev/input/event0");
    init_client_socket();

    // Automatic_Speech_Recognition();
    create_app_box_screen();  // 软件盒子界面
    //包含四个图标的回调函数和退出按钮的回调函数，实现多个进程执行


    while(1) 
    {
        lv_timer_handler();
        usleep(5000);
    }
    end_client_socket();
    return 0;
}
